
Page({
  async onLoad(){
  //  const res=await wx.http.get('/announcement')
  //  console.log(res);
   this.getNotices()
  },
  data:{
  notices:[]
  },
  async getNotices(){
   const {code,data:notices}=await  wx.http.get('/announcement')
   if(code !==10000) return wx.utils.toast()
   this.setData({
     notices
   })
  //  console.log(notices);
  }
})
